package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 报名材料核验附加表
 *
 * @author chenzh
 * @since 2024-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_enroll_verification")
@Schema(name = "EduStudentEnrollVerification", title = "报名材料核验附加表", description = "报名材料核验附加表实体类")
public class EduStudentEnrollVerification extends Model<EduStudentEnrollVerification> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "verificationId", description = "核验id")
    @TableId(value = "verification_id", type = IdType.ASSIGN_ID)
    private Long verificationId;

    @Schema(name = "studentEnrollId", description = "申请报名核验id")
    @TableField(value = "student_enroll_id")
    private String studentEnrollId;
    @Schema(name = "studentEnrollPreId", description = "预采集id")
    @TableField(value = "student_enroll_pre_id")
    private String studentEnrollPreId;
    @Schema(name = "schoolId", description = "核验学校id")
    @TableField(value = "school_id")
    private String schoolId;
    @Schema(name = "verificationType", description = "报名申请线下核验类型：1 原住民 2服务区 3 房户一致 4 亲子关系 5房产有效性 6户籍有效性")
    @TableField(value = "verification_type")
    private String verificationType;

    @Schema(name = "verificationTypeId", description = "核验数据id")
    @TableField(value = "verification_type_id")
    private String verificationTypeId;

    @Schema(name = "verificationAddress", description = "核验的地址")
    @TableField(value = "verification_address")
    private String verificationAddress;

    @Schema(name = "verificationStatus", description = "核验状态：0待核验 1 核验通过 2 核验不通过")
    @TableField(value = "verification_status")
    private String verificationStatus;

    @Schema(name = "verificationRemarks", description = "核验意见")
    @TableField(value = "verification_remarks")
    private String verificationRemarks;

    @Schema(name = "verificationUserId", description = "核验人")
    @TableField(value = "verification_user_id")
    private String verificationUserId;

    @Schema(name = "verificationTime", description = "核验时间")
    @TableField(value = "verification_time")
    private Date verificationTime;

    @Schema(name = "fileUrl", description = "材料")
    @TableField(value = "file_url")
    private String fileUrl;

    @Schema(name = "areaCode", description = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", description = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.verificationId;
    }
}
